{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport * as React from 'react';\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport classNames from 'classnames';\nexport default function DrawerPanel(props) {\n  var prefixCls = props.prefixCls,\n    title = props.title,\n    footer = props.footer,\n    extra = props.extra,\n    _props$closable = props.closable,\n    closable = _props$closable === void 0 ? true : _props$closable,\n    _props$closeIcon = props.closeIcon,\n    closeIcon = _props$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined, null) : _props$closeIcon,\n    onClose = props.onClose,\n    headerStyle = props.headerStyle,\n    drawerStyle = props.drawerStyle,\n    bodyStyle = props.bodyStyle,\n    footerStyle = props.footerStyle,\n    children = props.children;\n  var closeIconNode = closable && /*#__PURE__*/React.createElement(\"button\", {\n    type: \"button\",\n    onClick: onClose,\n    \"aria-label\": \"Close\",\n    className: \"\".concat(prefixCls, \"-close\")\n  }, closeIcon);\n  function renderHeader() {\n    if (!title && !closable) {\n      return null;\n    }\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(\"\".concat(prefixCls, \"-header\"), _defineProperty({}, \"\".concat(prefixCls, \"-header-close-only\"), closable && !title && !extra)),\n      style: headerStyle\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"-header-title\")\n    }, closeIconNode, title && /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"-title\")\n    }, title)), extra && /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"-extra\")\n    }, extra));\n  }\n  function renderFooter() {\n    if (!footer) {\n      return null;\n    }\n    var footerClassName = \"\".concat(prefixCls, \"-footer\");\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: footerClassName,\n      style: footerStyle\n    }, footer);\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-wrapper-body\"),\n    style: Object.assign({}, drawerStyle)\n  }, renderHeader(), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-body\"),\n    style: bodyStyle\n  }, children), renderFooter());\n}","map":{"version":3,"names":["React","CloseOutlined","classNames","DrawerPanel","props","prefixCls","title","footer","extra","closable","closeIcon","createElement","onClose","headerStyle","drawerStyle","bodyStyle","footerStyle","children","closeIconNode","type","onClick","className","renderHeader","style","renderFooter","footerClassName","Object","assign"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/drawer/DrawerPanel.js"],"sourcesContent":["import * as React from 'react';\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport classNames from 'classnames';\nexport default function DrawerPanel(props) {\n  const {\n    prefixCls,\n    title,\n    footer,\n    extra,\n    closable = true,\n    closeIcon = /*#__PURE__*/React.createElement(CloseOutlined, null),\n    onClose,\n    headerStyle,\n    drawerStyle,\n    bodyStyle,\n    footerStyle,\n    children\n  } = props;\n  const closeIconNode = closable && /*#__PURE__*/React.createElement(\"button\", {\n    type: \"button\",\n    onClick: onClose,\n    \"aria-label\": \"Close\",\n    className: `${prefixCls}-close`\n  }, closeIcon);\n  function renderHeader() {\n    if (!title && !closable) {\n      return null;\n    }\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(`${prefixCls}-header`, {\n        [`${prefixCls}-header-close-only`]: closable && !title && !extra\n      }),\n      style: headerStyle\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-header-title`\n    }, closeIconNode, title && /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-title`\n    }, title)), extra && /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-extra`\n    }, extra));\n  }\n  function renderFooter() {\n    if (!footer) {\n      return null;\n    }\n    const footerClassName = `${prefixCls}-footer`;\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: footerClassName,\n      style: footerStyle\n    }, footer);\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-wrapper-body`,\n    style: Object.assign({}, drawerStyle)\n  }, renderHeader(), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-body`,\n    style: bodyStyle\n  }, children), renderFooter());\n}"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,aAAa,MAAM,0CAA0C;AACpE,OAAOC,UAAU,MAAM,YAAY;AACnC,eAAe,SAASC,WAAW,CAACC,KAAK,EAAE;EACzC,IACEC,SAAS,GAYPD,KAAK,CAZPC,SAAS;IACTC,KAAK,GAWHF,KAAK,CAXPE,KAAK;IACLC,MAAM,GAUJH,KAAK,CAVPG,MAAM;IACNC,KAAK,GASHJ,KAAK,CATPI,KAAK;IAAA,kBASHJ,KAAK,CARPK,QAAQ;IAARA,QAAQ,gCAAG,IAAI;IAAA,mBAQbL,KAAK,CAPPM,SAAS;IAATA,SAAS,iCAAG,aAAaV,KAAK,CAACW,aAAa,CAACV,aAAa,EAAE,IAAI,CAAC;IACjEW,OAAO,GAMLR,KAAK,CANPQ,OAAO;IACPC,WAAW,GAKTT,KAAK,CALPS,WAAW;IACXC,WAAW,GAITV,KAAK,CAJPU,WAAW;IACXC,SAAS,GAGPX,KAAK,CAHPW,SAAS;IACTC,WAAW,GAETZ,KAAK,CAFPY,WAAW;IACXC,QAAQ,GACNb,KAAK,CADPa,QAAQ;EAEV,IAAMC,aAAa,GAAGT,QAAQ,IAAI,aAAaT,KAAK,CAACW,aAAa,CAAC,QAAQ,EAAE;IAC3EQ,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAER,OAAO;IAChB,YAAY,EAAE,OAAO;IACrBS,SAAS,YAAKhB,SAAS;EACzB,CAAC,EAAEK,SAAS,CAAC;EACb,SAASY,YAAY,GAAG;IACtB,IAAI,CAAChB,KAAK,IAAI,CAACG,QAAQ,EAAE;MACvB,OAAO,IAAI;IACb;IACA,OAAO,aAAaT,KAAK,CAACW,aA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